<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

/**
 * Class WaterFeeType.
 *
 * @package namespace App\Models;
 */
class WaterFeeType extends BaseModel implements Transformable
{
    use TransformableTrait;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name',
        'fee',
        'compute_unit',
        'remark'
    ];

    public function staffPeriodFeeDetails()
    {
        return $this->morphMany(StaffPeriodFeeDetail::class);
    }

    public function dormTypes()
    {
        return $this->hasMany(DormType::class);
    }
}
